/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2023-01-03 14:54:50
 * @LastEditors: 朱安武 549410045@qq.com
 * @LastEditTime: 2023-01-05 23:15:46
 * @FilePath: \elementUi\src\services\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "../utils/request";

//登录请求
export  function login(body){
    return request.post('/admin/login',body)
}

//banner请求
export  function getBannerList(){
    return request.get('/banner/list')
}

//删除Banner
export function removeBanner(bannerid){
    return request.get('/banner/delete',{
        params:{
            bannerid
        }
    })
}

//添加轮播图
export function addBanner(body){
    return request.post('/banner/add',body)
}

//查看数据
export function updateBannerStatus(body){
    return request.post('/banner/updateFlag',body)
}

//图表数据
export function getKData(){
    return request.get('/data/kData')
}